<!DOCTYPE html>
<html lang="zh-CN">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Muddery编辑器</title>
        <meta name="HandheldFriendly" content="True" />
        <link href="../css/bootstrap.min.css?hash=08df9a96" rel="stylesheet" type="text/css" />
        <link href="../css/main.css?hash=58d3930d" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <div id="login-view">
            <div id="login-box" class="container">
                <div class="well">
                    <h2 class="title">欢迎登录</h2>
                    <div role="form">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-user" aria-hidden="true"></i></span>
                            <input type="text" class="form-control" id="username" name="username" placeholder="请输入用户名"/>
                        </div>
                        <br>
                        <div class="input-group">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                            <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码"/>
                        </div>
                        <div id="login-message">
                        </div>
                        <button id="button-login" type="button" class="btn btn-success btn-block">登录</button>
                    </div>
                </div>
            </div>
        </div>
        <div id="editor-view" style="display:none">
            <nav class="navbar navbar-default" role="navigation">
                <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#">Muddery编辑器</a>
                </div>
                <div>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                用户<b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu navbar-drop-menu">
                                <li><button type="button" id="button-logout" class="btn-link">登出</button></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                </div>
            </nav>
            <div class="col-xs-2" id="menu-box">
                <div class="panel-group table-responsive" role="tablist">
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse" data-target="#collapseListGroup1" role="tab" >
                            <h4 class="panel-title">
                                基本设置
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading1">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="settings_editor" data-params="table:game_settings">
                                    游戏设置
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="properties_dict_table" data-params="table:properties_dict">
                                    自定义属性
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:equipment_types">
                                    装备类型
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:equipment_positions">
                                    装备位置
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading2" data-toggle="collapse" data-target="#collapseListGroup2" role="tab" >
                            <h4 class="panel-title">
                                世界地图
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup2" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading2">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <button class="menu-item-left" data-page="map_table">
                                        地图
                                    </button>
                                </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:AREA">
                                    区域
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:ROOM">
                                    房间
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:EXIT">
                                    出口
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:WORLD_OBJECT">
                                    世界物体
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:WORLD_NPC">
                                    世界NPC
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:condition_desc">
                                    条件描述
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading3" data-toggle="collapse" data-target="#collapseListGroup3" role="tab" >
                            <h4 class="panel-title">
                                角色
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup3" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading3">
                            <ul class="list-group">
                                <li class="list-group-item">
                                    <button class="menu-item-left" data-page="object_table" data-params="typeclass:PLAYER_CHARACTER">
                                        玩家角色
                                    </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:WORLD_NPC">
                                    世界NPC
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:COMMON_NPC">
                                    普通NPC
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:default_objects">
                                    角色默认物品
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:skill_types">
                                    技能类型
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:SKILL">
                                    技能
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:default_skills">
                                    角色默认技能
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:npc_dialogues">
                                    NPC对话
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:character_loot_list">
                                    角色掉落表
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading4" data-toggle="collapse" data-target="#collapseListGroup4" role="tab" >
                            <h4 class="panel-title">
                                物体
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup4" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading4">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:WORLD_OBJECT">
                                    世界物体
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:COMMON_OBJECT">
                                    普通物品
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:FOOD">
                                    食物
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:SKILL_BOOK">
                                    技能书
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:EQUIPMENT">
                                    装备
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:WORLD_OBJECT_CREATOR">
                                    物品生成器
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:creator_loot_list">
                                    物品生成表
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:default_objects">
                                    默认物品
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:condition_desc">
                                    条件描述
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading5" data-toggle="collapse" data-target="#collapseListGroup5" role="tab" >
                            <h4 class="panel-title">
                                装备
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup5" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading5">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:equipment_types">
                                    装备类型
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:equipment_positions">
                                    装备位置
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:EQUIPMENT">
                                    装备
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading6" data-toggle="collapse" data-target="#collapseListGroup6" role="tab" >
                            <h4 class="panel-title">
                                任务
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup6" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading6">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:QUEST">
                                    任务
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:quest_reward_list">
                                    任务奖励表
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:quest_objectives">
                                    任务目标
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:quest_dependencies">
                                    任务依赖关系
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:dialogue_quest_dependencies">
                                    对话任务关系
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading8" data-toggle="collapse" data-target="#collapseListGroup8" role="tab" >
                            <h4 class="panel-title">
                                对话
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup8" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading8">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:dialogues,editor:dialogue">
                                    对话列表
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:dialogue_relations">
                                    对话关系
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:npc_dialogues">
                                    NPC对话
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:dialogue_quest_dependencies">
                                    对话任务关系
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading9" data-toggle="collapse" data-target="#collapseListGroup9" role="tab" >
                            <h4 class="panel-title">
                                商店
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup9" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading9">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:SHOP">
                                    商店
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="object_table" data-params="typeclass:SHOP_GOODS">
                                    商品
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:npc_shops">
                                    NPC的商店
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading10" data-toggle="collapse" data-target="#collapseListGroup10" role="tab" >
                            <h4 class="panel-title">
                                资源
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup10" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading10">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:image_resources">
                                    图像
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="common_table" data-params="table:localized_strings">
                                    本地化字符串
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                    <div class="panel panel-primary leftMenu">
                        <div class="panel-heading" id="collapseListGroupHeading11" data-toggle="collapse" data-target="#collapseListGroup11" role="tab" >
                            <h4 class="panel-title">
                                管理
                                <span class="glyphicon glyphicon-chevron-down right"></span>
                            </h4>
                        </div>
                        <div id="collapseListGroup11" class="panel-collapse collapse" role="tabpanel" aria-labelledby="collapseListGroupHeading11">
                            <ul class="list-group">
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="load_files">
                                    上传/下载
                                </button>
                              </li>
                              <li class="list-group-item">
                                <button class="menu-item-left" data-page="apply_changes">
                                    应用
                                </button>
                              </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-10" id="content-box">
                <ul id="navigate-bar" class="nav nav-tabs">
                </ul>
                <div id="contents">
                </div>
            </div>
        </div>

        <!-- Confirm Model -->  
        <div class="modal fade" id="confirm-dialog" data-backdrop="static">  
            <div class="modal-dialog">  
                <div class="modal-content message_align">  
                    <div class="modal-header">  
                        <button type="button" id="close-button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 id="confirm-title" class="modal-title"></h4>  
                    </div>  
                    <div id="confirm-content" class="modal-body"></div>
                    <div class="modal-footer">
                        <button type="button" id="cancel-button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                        <button type="button" id="confirm-button" class="btn btn-primary">OK</button>
                    </div> 
                </div>
            </div>
        </div>

        <script src="../libs/jquery-3.2.1.min.js?hash=1055018c" type="text/javascript"></script>
        <script src="../libs/bootstrap.min.js?hash=b07a5be9" type="text/javascript"></script>
        <script src="../config.js?hash=b0778795" type="text/javascript"></script>
        <script src="../service/service.js?hash=002a39a9" type="text/javascript"></script>
        <script src="../controller/main.js?hash=13d96203" type="text/javascript"></script>
    </body>

</html>
